package com.example.demo.service.interfaces;

import com.example.demo.domain.UserEntity;
import com.github.pagehelper.PageInfo;


/**
 * @Author chenhegang
 * @Description  测试mybatis service接口
 * @Date 2018/6/22 1:23
 */
public interface IUserMyBatisService  {

    /**
     * 添加用户
     * @param user 用户对象
     * @return
     */
    int addUser(UserEntity user);

    /**
     * @Author chenhegang
     * @Description  查找所有用户信息
     * @Date 2018/6/22 1:24
     */
    PageInfo<UserEntity> findAllUser(int pageNum, int pageSize);
}
